home *** CD-ROM | disk | FTP | other *** search
/ Know Your Baseball - The Greatest Player Resource / Know Your Baseball - Greatest Player.iso / Baseball / Director / SHARED.CST / 00005_Script_Media Controls < prev    next >
Text File  |  1998-09-21  |  3KB  |  134 lines

  1. global gClipOut,gClipIn,gAVI,gClicked,gControls,gBt,gStopFlag,gAVI1
  2. -- fades volume of puppetsound
  3.  
  4. on soundFade
  5.   set x = the soundlevel
  6.   repeat while x > 1
  7.     set the soundlevel =  the soundlevel -1
  8.     startTimer
  9.     set wait = the timer+10
  10.     repeat while the timer < wait
  11.     end repeat
  12.     set x = the soundlevel
  13.   end repeat
  14. end
  15.  
  16.  
  17. on loadvideo flag
  18.   puppetsprite 3 ,true
  19.   set the type of sprite 3 = 16
  20.   MVideoSegment(gControls) flag
  21.   if the result = 0 then
  22.     MVideoSegment(gControls) 23
  23.   end if
  24.   
  25.   set the castnum of sprite 3 =the number of cast( the result)
  26.   set the loch of sprite 3 = 155
  27.   set the locv of sprite 3 = 150
  28.   updatestage
  29.   set the movietime of sprite 3 = gClipIn
  30.   set the movierate of sprite 3 = 1
  31. end
  32.  
  33.  
  34.  
  35. -- called from exit frame at the marker where the movie is playing
  36.  
  37. on VideoPlayer
  38.   if the type of sprite 3 = 0 then exit
  39.   -- put the movietime of sprite 3
  40.   if the movieTime of sprite 3 >= gClipOut then 
  41.     set the movierate of sprite 3 = 0
  42.     set the blend of sprite 8 = 100
  43.   end if
  44.   Controlloop
  45.   if  gStopFlag = 1 then
  46.     set the movierate of sprite 3 = 0
  47.     set the blend of sprite 8 = 100
  48.     exit
  49.   end if
  50.   
  51. end
  52.  
  53.  
  54. -- for SSQ moives with AVI at marker 1
  55.  
  56. on playAVI
  57.   global junk
  58.   if the type of sprite  3 < 16 then 
  59.     set gAVI = 32
  60.     set gAVI1 =30
  61.     puppetsprite 3, true 
  62.     set the type of sprite 3 = 16
  63.     mVideoSegment (gControls),32,0
  64.     set the castnum of sprite 3 = the number of cast  the result
  65.     set the locV of sprite 3 = 159
  66.     set the loch of sprite 3 = 488
  67.     updatestage
  68.     set the stoptime of sprite 3 = ( the duration of cast the result) -15
  69.     set the movierate of sprite 3 = 1
  70.   else
  71.     StopAVI
  72.   end if
  73. end
  74.  
  75. on playAVI1
  76.   if the type of sprite  3 < 16 then 
  77.     set gAVI = 32
  78.     set gAVI1 = 30
  79.     puppetsprite 3, true 
  80.     set the type of sprite 3 = 16
  81.     mVideoSegment (gControls),32,1
  82.     set the castnum of sprite 3 = the number of cast  the result
  83.     set the locV of sprite 3 = 156
  84.     set the loch of sprite 3 = 488
  85.     updatestage
  86.     set the movierate of sprite 3 = 1
  87.   else
  88.     StopAVI
  89.   end if
  90. end
  91.  
  92. -- specifc to intro screen of all SSQ movies
  93. -- specific to SSQ movies
  94.  
  95. on StopAVI
  96.   if the type of sprite 3 = 16 then set the movierate of sprite 3 = 0
  97.   set the castnum of sprite 3 = 0
  98.   set the type of sprite 3  = 0
  99.   puppetsprite 3, false
  100.   set gAVI = 1
  101.   set gAVI1 = 1
  102.   updatestage
  103. end
  104.  
  105. -- specific to SSQ movies
  106.  
  107. on AVIcleanup what
  108.   
  109.   if the frameLabel <> "1Video"  then puppetsound 0
  110.   
  111.   If the framelabel = "1Video" and gClicked = 11 then exit
  112.   
  113.   if rollover(32) = 0 and gAVI = 32 then 
  114.     stopAVI
  115.     exit
  116.   end if
  117.   
  118.   if gAVI = 2 and gclicked <> 11 then 
  119.     --- set gClipOut = 0 -- stop the AVI playback 
  120.     set the movierate of sprite 3 = 0
  121.     set gAVI = EMPTY
  122.     exit
  123.   end IF
  124.   
  125.   
  126.   
  127.   if what = " " or voidp(what) and the type of sprite 3 = 16 then 
  128.     puppetsound 0
  129.     set the movierate of sprite 3 = 0
  130.     set the blend of sprite 8 = 100
  131.     exit
  132.   end if
  133.   
  134. end